import { Test } from "./model";
import Container from "./components/container/index";
// import Vue from "vue";
console.log("组件",window.Vue);

Object.defineProperty(Container, "install", {
  configurable: false,
  enumerable: false,
  value(Vue: any, options: Record<string, any>) {
    // register component
    Vue.component("Container", Container);
    console.log("Test", new Test());
  },
});

// register component automatically if there has global Vue
/* istanbul ignore else */
if (typeof window !== "undefined" && window.Vue) {
  console.log("组件window");
  window.Vue.component("Container", Container);
}

export default Container;
